/**
 * Created by Administrator on 2018/3/30 0030.
 */
exports.handleError = ({ctx,message = '请求失败',err = null})=>{
    ctx.response.body = {
        code:-1,
        message,
    }
}
exports.handleSuccess = ({ctx,data = null,message = '请求成功'})=>{
    ctx.response.body = {
        code:0,
        data,
        message,
    }
}